package part1.api.file.filetest;

import java.io.File;

public class Test2 {
    public static void main(String[] args) {
        //将当前项目目录下1.txt-100.txt文件删除
        for (int i = 1; i <= 100; i++) {
            File file = new File(i+".txt");
            if (file.isFile()){
                file.delete();
            }
        }
    }
}
